package com.block.common.bean;

import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.block.common.util.LocalDateUtil;
import lombok.Data;

/**
 * 公共参数
 */
@Data
public class CommonParam {

    private String mobileSerialNo;

    private String mobileType;

    private String timestamp;

    private String deviceInfo;

    private String channelCode;

    private String channelName;

    private String channelType;

    private String clientType;

    private String deviceSystem;
    private String deviceBrand;
    private String deviceId;
    private String deviceModel;

    private String reqIp;

    private String jcId;
    private String bdVid;
    private String szRli;
    private String landingid;
    private String bxm_id;
    private String ccbid;
    private String aOId;

    private JSONObject extData;

    public String getTimestamp(){
        if (StrUtil.isEmpty(this.timestamp)){
            return String.valueOf(LocalDateUtil.getNowByTimeMillis());
        }
        return this.timestamp;
    }

}
